package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2020/12/5
 * 时间：17:13
 * 包名：com.vitabuybuy.tv.dto
 */
public class GoodsDetailsDto {
    private String images;
    private double originalPrice;
    private double salePrice;
    private double livePrice;
    private double promotionPrice;
    /**
     * name : 李佳琪旗舰店
     * logo : http://106.55.47.138/attachment/jpg/4849/993_28039.jpg
     * id : 63
     */

    private StoreBean store;
    private int salesQuantity;
    private int evaluationQuantity;
    private boolean favorites;
    private String name;
    private String description;
    private String descriptionImages;

    public String getDescriptionImages() {
        return descriptionImages == null ? "" : descriptionImages;
    }

    public void setDescriptionImages(String descriptionImages) {
        this.descriptionImages = descriptionImages;
    }

    public double getLivePrice() {
        return livePrice;
    }

    public void setLivePrice(double livePrice) {
        this.livePrice = livePrice;
    }

    public int getEvaluationQuantity() {
        return evaluationQuantity;
    }

    public void setEvaluationQuantity(int evaluationQuantity) {
        this.evaluationQuantity = evaluationQuantity;
    }

    public boolean isFavorites() {
        return favorites;
    }

    public void setFavorites(boolean favorites) {
        this.favorites = favorites;
    }

    public double getPromotionPrice() {
        return promotionPrice;
    }

    public void setPromotionPrice(double promotionPrice) {
        this.promotionPrice = promotionPrice;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public RegionBean getRegion() {
        return region;
    }

    public void setRegion(RegionBean region) {
        this.region = region;
    }

    private int id;
    private String slogan;
    /**
     * name : puma
     * id : 3
     */

    private BrandBean brand;
    private RegionBean region;
    private boolean live;
    private int liveId;
    private String playUrl;

    public int getLiveId() {
        return liveId;
    }

    public void setLiveId(int liveId) {
        this.liveId = liveId;
    }

    public String getPlayUrl() {
        return playUrl;
    }

    public void setPlayUrl(String playUrl) {
        this.playUrl = playUrl;
    }

    /**
     * valueList : [{"id":194,"text":"{\"EN\":\"37\",\"CN\":\"37\",\"MA\":\"37\"}"},{"id":195,"text":"{\"EN\":\"38\",\"CN\":\"38\",\"MA\":\"38\"}"},{"id":196,"text":"{\"EN\":\"39\",\"CN\":\"39\",\"MA\":\"39\"}"},{"id":197,"text":"{\"EN\":\"40\",\"CN\":\"40\",\"MA\":\"40\"}"}]
     * name : {"EN":"size","CN":"尺码","MA":"尺码"}
     * ordinary : false
     * id : 95
     * type : text
     */

    private List<AttributeListBean> attributeList;
    /**
     * image : http://106.55.47.138/attachment/jpg/1869/999_22035.jpg
     * code : 197
     * originalPrice : 79.0
     * salePrice : 49.0
     * id : 237
     * specifications : {"EN":"40","CN":"40","MA":"40"}
     * stocks : 10
     */

    private List<GoodsListBean> goodsList;
    private List<?> labelList;

    public String getImages() {
        return images;
    }

    public void setImages(String images) {
        this.images = images;
    }

    public double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public double getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(double salePrice) {
        this.salePrice = salePrice;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public int getSalesQuantity() {
        return salesQuantity;
    }

    public void setSalesQuantity(int salesQuantity) {
        this.salesQuantity = salesQuantity;
    }

    public String getName() {
        return LanaugeUtils.returnStrByLocation(name);
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSlogan() {
        return slogan;
    }

    public void setSlogan(String slogan) {
        this.slogan = slogan;
    }

    public BrandBean getBrand() {
        return brand;
    }

    public void setBrand(BrandBean brand) {
        this.brand = brand;
    }

    public boolean isLive() {
        return live;
    }

    public void setLive(boolean live) {
        this.live = live;
    }

    public List<AttributeListBean> getAttributeList() {
        return attributeList;
    }

    public void setAttributeList(List<AttributeListBean> attributeList) {
        this.attributeList = attributeList;
    }

    public List<GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    public List<?> getLabelList() {
        return labelList;
    }

    public void setLabelList(List<?> labelList) {
        this.labelList = labelList;
    }



    public static class StoreBean {
        private String name;
        private String logo;
        private int id;
        private int productQuantity;
        private boolean attention;

        public boolean isAttention() {
            return attention;
        }

        public void setAttention(boolean attention) {
            this.attention = attention;
        }

        public int getProductQuantity() {
            return productQuantity;
        }

        public void setProductQuantity(int productQuantity) {
            this.productQuantity = productQuantity;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getLogo() {
            return logo;
        }

        public void setLogo(String logo) {
            this.logo = logo;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class BrandBean {
        private String name;
        private int id;

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class RegionBean {
        private String name = "";
        private int id;

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class AttributeListBean {
        private String name;
        private boolean ordinary;
        private int id;
        private String type;
        /**
         * id : 194
         * text : {"EN":"37","CN":"37","MA":"37"}
         */

        private List<ValueListBean> valueList;

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public boolean isOrdinary() {
            return ordinary;
        }

        public void setOrdinary(boolean ordinary) {
            this.ordinary = ordinary;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public List<ValueListBean> getValueList() {
            return valueList;
        }

        public void setValueList(List<ValueListBean> valueList) {
            this.valueList = valueList;
        }

        public static class ValueListBean {
            private int id;
            private String text;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getText() {
                return LanaugeUtils.returnStrByLocation(text);
            }

            public void setText(String text) {
                this.text = text;
            }
        }
    }

    public static class GoodsListBean {
        private String image;
        private String code;
        private double originalPrice;
        private double promotionPrice;
        private double salePrice;
        private double livePrice;
        private int id;
        private String specifications;
        private int stocks;
        private int promotionQuantity;
        private int liveQuantity;

        public int getLiveQuantity() {
            return liveQuantity;
        }

        public void setLiveQuantity(int liveQuantity) {
            this.liveQuantity = liveQuantity;
        }

        public double getLivePrice() {
            return livePrice;
        }

        public void setLivePrice(double livePrice) {
            this.livePrice = livePrice;
        }

        public double getPromotionPrice() {
            return promotionPrice;
        }

        public void setPromotionPrice(double promotionPrice) {
            this.promotionPrice = promotionPrice;
        }

        public int getPromotionQuantity() {
            return promotionQuantity;
        }

        public void setPromotionQuantity(int promotionQuantity) {
            this.promotionQuantity = promotionQuantity;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public double getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(double originalPrice) {
            this.originalPrice = originalPrice;
        }

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getSpecifications() {
            return specifications;
        }

        public void setSpecifications(String specifications) {
            this.specifications = specifications;
        }

        public int getStocks() {
            return stocks;
        }

        public void setStocks(int stocks) {
            this.stocks = stocks;
        }
    }
}
